package com.kang.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 供货协议实体类
 * 
 * @author zs614
 *
 */
public class SupplyAgreement implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Integer supplyagreementid;
	/**
	 * 供货协议编号
	 */
	private String protocolcode;
	/**
	 * 所属供应商ID
	 */
	private Integer supplierid;
	/**
	 * 供应商编号
	 */
	private String suppliercode;
	/**
	 * 供应商姓名
	 */
	private String suppliername;
	/**
	 * 公司名
	 */
	private Integer companyid;
	/**
	 * 说明
	 */
	private String protocolexplain;
	/**
	 * 生效时间
	 */
	private Date starttime;
	/**
	 * 失效时间
	 */
	private Date endtime;
	/**
	 * 生效时间
	 */
	private String starttimestr;
	/**
	 * 失效时间
	 * 
	 */
	private String endtimestr;
	/**
	 * 状态
	 */
	private String protocostatus;
	/**
	 * 协议附件路径
	 */
	private String protocoenclosure;

	/**
	 * 创建时间
	 */
	private Date createdate;
	/**
	 * 创建人ID
	 */
	private Integer createpersonid;
	/**
	 * 创建人姓名
	 */
	private String createpersonname;

	/**
	 * 最后更新时间
	 */
	private Date lastprocessingtime;
	/**
	 * 最后更新人
	 */
	private Integer lastpersonid;
	/**
	 * 最后更新人姓名
	 */
	private String lastpersonname;

	public String getStarttimestr() {
		return starttimestr;
	}

	public void setStarttimestr(String starttimestr) {
		this.starttimestr = starttimestr;
	}

	public String getEndtimestr() {
		return endtimestr;
	}

	public void setEndtimestr(String endtimestr) {
		this.endtimestr = endtimestr;
	}

	public Integer getSupplyagreementid() {
		return supplyagreementid;
	}

	public void setSupplyagreementid(Integer supplyagreementid) {
		this.supplyagreementid = supplyagreementid;
	}

	public String getProtocolcode() {
		return protocolcode;
	}

	public void setProtocolcode(String protocolcode) {
		this.protocolcode = protocolcode == null ? null : protocolcode.trim();
	}

	public Integer getSupplierid() {
		return supplierid;
	}

	public void setSupplierid(Integer supplierid) {
		this.supplierid = supplierid;
	}

	public Integer getCompanyid() {
		return companyid;
	}

	public void setCompanyid(Integer companyid) {
		this.companyid = companyid;
	}

	public String getProtocolexplain() {
		return protocolexplain;
	}

	public void setProtocolexplain(String protocolexplain) {
		this.protocolexplain = protocolexplain == null ? null : protocolexplain.trim();
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public String getProtocostatus() {
		return protocostatus;
	}

	public void setProtocostatus(String protocostatus) {
		this.protocostatus = protocostatus == null ? null : protocostatus.trim();
	}

	public String getProtocoenclosure() {
		return protocoenclosure;
	}

	public void setProtocoenclosure(String protocoenclosure) {
		this.protocoenclosure = protocoenclosure == null ? null : protocoenclosure.trim();
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getLastprocessingtime() {
		return lastprocessingtime;
	}

	public void setLastprocessingtime(Date lastprocessingtime) {
		this.lastprocessingtime = lastprocessingtime;
	}

	public Integer getCreatepersonid() {
		return createpersonid;
	}

	public void setCreatepersonid(Integer createpersonid) {
		this.createpersonid = createpersonid;
	}

	public Integer getLastpersonid() {
		return lastpersonid;
	}

	public void setLastpersonid(Integer lastpersonid) {
		this.lastpersonid = lastpersonid;
	}

	public String getCreatepersonname() {
		return createpersonname;
	}

	public void setCreatepersonname(String createpersonname) {
		this.createpersonname = createpersonname;
	}

	public String getLastpersonname() {
		return lastpersonname;
	}

	public void setLastpersonname(String lastpersonname) {
		this.lastpersonname = lastpersonname;
	}

	public String getSuppliername() {
		return suppliername;
	}

	public void setSuppliername(String suppliername) {
		this.suppliername = suppliername;
	}

	public String getSuppliercode() {
		return suppliercode;
	}

	public void setSuppliercode(String suppliercode) {
		this.suppliercode = suppliercode;
	}

	@Override
	public String toString() {
		return "SupplyAgreement [supplyagreementid=" + supplyagreementid + ", protocolcode=" + protocolcode
				+ ", supplierid=" + supplierid + ", suppliercode=" + suppliercode + ", suppliername=" + suppliername
				+ ", companyid=" + companyid + ", protocolexplain=" + protocolexplain + ", starttime=" + starttime
				+ ", endtime=" + endtime + ", starttimestr=" + starttimestr + ", endtimestr=" + endtimestr
				+ ", protocostatus=" + protocostatus + ", protocoenclosure=" + protocoenclosure + ", createdate="
				+ createdate + ", createpersonid=" + createpersonid + ", createpersonname=" + createpersonname
				+ ", lastprocessingtime=" + lastprocessingtime + ", lastpersonid=" + lastpersonid + ", lastpersonname="
				+ lastpersonname + "]";
	}
}